<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
		<head>
				<base href="<%=basePath%>">
				<title>NewsManage.jsp</title>
				<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
				<meta http-equiv="description" content="this is my page">
				<meta http-equiv="content-type" content="text/html; charset=UTF-8">
				<link rel="stylesheet" href="plugins/bootstrap/css/bootstrap.min.css" type="text/css"></link>
				<link rel="stylesheet" href="plugins/FlatUI/dist/css/flat-ui.css" type="text/css"></link>
				<link rel="shortcut icon" href="plugins/FlatUI/dist/img/favicon.ico">
				<link rel="stylesheet" href="css/style.css">
				<script type="text/javascript" src="js/jquery.js">
</script>
				<script type="text/javascript" src="plugins/FlatUI/dist/js/flat-ui.js">
</script>
				<script type="text/javascript" src="plugins/bootstrap/js/messager.js">
</script>
				<script type="text/javascript">
function deleteNews(id) {
	$.messager.confirm("确认删除", "确认要删除吗?删除后不能恢复", function() {
		alert("ok pressed");
	});
}

function desmethod() {
	alert(1);
}
</script>
		</head>
		<body style="padding: 5px 10px">
				<div class="panel panel-primary">
						<div class="panel-heading">
								<h3 class="panel-title">
										新闻管理
								</h3>
						</div>
						<div class="panel-body">
								<a href="newsAdd.jsp" class="btn btn-primary btn-default"> 添加  <span class="glyphicon glyphicon-plus"></span> </a>
								<table class="table table-hover">
										<thead>
												<tr>
														<th>
																新闻标题
														</th>
														<th>
																新闻正文
														</th>
														<th>
																创建时间
														</th>
														<th>
																操作
														</th>
												</tr>
										</thead>
										<tbody>
												<tr>
														<td>
																兴业银行南京分行阿萨...
														</td>
														<td>
																兴业银行南京分行阿萨德好啊斯的金卡或冻结卡大口喝酒啊斯的斯的...
														</td>
														<td>
																2014年10月11日
														</td>
														<td>
																<a class="btn btn-primary  btn-xs btn-warning" href="newsModify.jsp"> 修改 <span class="glyphicon glyphicon-pencil"></span> </a>
																<a class="btn btn-primary btn-xs btn-success" href="newsDetail.jsp"> 详情 <span class="glyphicon glyphicon-list-alt"></span> </a>
																<a class="btn btn-primary btn-xs btn-danger" href="javascript:;" onclick="deleteNews('1')"> 删除 <span class="glyphicon glyphicon-remove"></span> </a>
														</td>
												</tr>
												<tr>
														<td>
																兴业银行南京分行阿萨...
														</td>
														<td>
																兴业银行南京分行阿萨德好啊斯的金卡或冻结卡大口喝酒啊斯的斯的...
														</td>
														<td>
																2014年10月11日
														</td>
														<td>
																<a class="btn btn-primary  btn-xs btn-warning" href="productModify.jsp"> 修改 <span class="glyphicon glyphicon-pencil"></span> </a>
																<a class="btn btn-primary btn-xs btn-success" href="productDetail.jsp"> 详情 <span class="glyphicon glyphicon-list-alt"></span> </a>
																<a class="btn btn-primary btn-xs btn-danger" href="javascript:;" onclick="deleteProduct('1')"> 删除 <span class="glyphicon glyphicon-remove"></span> </a>
														</td>
												</tr>
												<tr>
														<td>
																兴业银行南京分行阿萨...
														</td>
														<td>
																兴业银行南京分行阿萨德好啊斯的金卡或冻结卡大口喝酒啊斯的斯的...
														</td>
														<td>
																2014年10月11日
														</td>
														<td>
																<a class="btn btn-primary  btn-xs btn-warning" href="productModify.jsp"> 修改 <span class="glyphicon glyphicon-pencil"></span> </a>
																<a class="btn btn-primary btn-xs btn-success" href="productDetail.jsp"> 详情 <span class="glyphicon glyphicon-list-alt"></span> </a>
																<a class="btn btn-primary btn-xs btn-danger" href="javascript:;" onclick="deleteProduct('1')"> 删除 <span class="glyphicon glyphicon-remove"></span> </a>
														</td>
												</tr>
										</tbody>
								</table>
						</div>
				</div>
		</body>
</html>
